<?php
class Application_Form_Updatenews extends Zend_Form
{
    public function init()
    {
        $this->setName('create-news');
      //  $this->setMethod('post');
        
        $name = new Zend_Form_Element_Text('name');
        $name->setLabel('Title')
                ->setRequired(true)
                ->addValidator('NotEmpty');
        
        $text = new Zend_Form_Element_Textarea('text');
        $text->setLabel('Text')
                ->setRequired(true)
                ->addValidator('NotEmpty');
        
        $update = new Zend_Form_Element_Submit('update');
        $update->setLabel(' Update');
        $this->setElements(array($name, $text, $update));
    }


}